<?php
$timestart = microtime(true);
if (isset($_REQUEST['PHPSESSID'])) session_id($_REQUEST['PHPSESSID']);
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 'On');
define('DIR_BASE_LIBS', DIR_BASE.DS.'libs');
require_once(DIR_BASE_LIBS.DS.'basic.php');
require_once(DIR_BASE_LIBS.DS.'Object.php');
require_once(DIR_BASE_LIBS.DS.'Config.php');
require_once(DIR_BASE_LIBS.DS.'BaseAppConfig.php');
require_once(DIR_APP.DS.'AppConfig.php');
require_once(DIR_BASE.DS.'BaseConfig.php');
require_once(DIR_BASE_LIBS.DS.'FileHandler.php');
require_once(DIR_BASE_LIBS.DS.'exceptions'.DS.'UsingFailedException.php');
require_once(BaseConfig::GetInstance()->DIR_MODULES.DS.'bootstrap.php');
date_default_timezone_set(AppConfig::GetInstance()->DEFAULT_TIMEZONE);
set_error_handler('Log::ErrorHandler');
set_exception_handler('Log::ExceptionHandler');
ini_set('error_prepend_string', AppConfig::GetInstance()->SIGN_FATAL_ERROR);
ob_start('Log::FatalHandler');
LogControl::GetInstance();
?>